package com.ad.pet.app.address;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.address.Address;
import com.ad.pet.models.remote.address.Province;

import java.util.List;

/**
 * Created by SEELE on 2018/6/26.
 */

public interface AddressContract {

    interface Presenter extends BasePresenter<View> {

       void getAddressList();
       void updataAddress(String address_id,String consigner,String mobile,
                          String province,String city,String district,String address,String label,
                          int defaults);
        void addAddress(String consigner,String mobile,
                           String province,String city,String district,String address,String label,
                            int defaults);
       void delAddress(String aid);
       void getCountryProvence();

    }

    interface View extends AbsView {
      void getAddresssListSuccess(List<Address> addressList);
      void getUpdateAddressSuccess();
      void delAddressSuccess();
      void getCountryProvenceSuccess(List<Province> list);

    }
}
